package api

import (
	"github.com/gin-gonic/gin"
)

type PlayApi struct {
}

func (p *PlayApi) Play(c *gin.Context) {
	err := playService.Play()
	if err != nil {
		c.JSON(400, gin.H{"error": err.Error()})
		return
	} else {
		c.JSON(200, gin.H{"message": "执行脚本成功"})
		return
	}
}
